
import Home from "./pages/Home"
import Profile from './pages/Profile'
import { connect } from 'react-redux'
import './style.css'
import React, { PureComponent } from "react"

export class App extends PureComponent {
  render() {
    const { count } = this.props
    return (
      <div className="App">
        <div className="item">
          App count: {count}
        </div>
        <div className="item">
          <Home></Home>
        </div>
        <div className="item">
          <Profile></Profile>
        </div>
      </div>
    );
  }
}

const mapStateToProps = (state) => ({
  count: state.count.count
})

export default connect(mapStateToProps)(App);
